// 此处写category的TS约束

//  1、Pinia的state中的数据
// interface CategoryStateModel {
//   category1Id: number | undefined,
//   category2Id: number | undefined,
//   category3Id: number | undefined
// };
export type Numberable = number | undefined;

// 返回数组数据中欧冠的每个对象约束
export interface CategoryModel {
  id: number,
  name: string
}

// 返回的数组数据约束
export type CategoryListModel = CategoryModel[];

export interface CategoryStateModel {
  category1Id: Numberable,
  category2Id: Numberable,
  category3Id: Numberable,

  category1List: CategoryListModel,
  category2List: CategoryListModel,
  category3List: CategoryListModel,
}

